package com.csun.dsms.model.dto.record;

import com.csun.dsms.model.dto.healthReport.HealthReportDTO;
import com.csun.dsms.model.vo.project.ProjectVo;
import com.csun.dsms.validator.DsmsRecordBeginValidator;
import com.csun.dsms.validator.DsmsRecordFinishValidator;
import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author chisj chisj@foxmail.com
 * @version 1.0.0
 * @date 2021-09-27 11:24
 * @description: TODO
 */
@Data
public class FinishTaskDto {

    /**
     * 服务任务id
     */
    /*@NotNull(message = "record.id.null")
    private Long id;*/

    /**
     * 服务记录id集合
     */
    @NotNull(message = "record.id.null",groups = DsmsRecordFinishValidator.class)
    @NotNull(message = "record.id.null",groups = DsmsRecordBeginValidator.class)
    private List<Long> ids;

    /**
     *服务集合
     */
    @NotNull(message = "project.null",groups = DsmsRecordFinishValidator.class)
    @NotEmpty(message = "project.null",groups = DsmsRecordFinishValidator.class)
    private List<ProjectVo> projectVos;

    /**
     * 服务前照片,多张用;分割
     */
    @NotNull(message = "service.pic.before.null",groups = DsmsRecordBeginValidator.class)
    @NotEmpty(message = "service.pic.before.null",groups = DsmsRecordBeginValidator.class)
    private String servicePicBefore;

    /**
     * 服务后照片,多张用;分割
     */
    @NotNull(message = "service.pic.after.null",groups = DsmsRecordFinishValidator.class)
    @NotEmpty(message = "service.pic.after.null",groups = DsmsRecordFinishValidator.class)
    private String servicePicAfter;

    /**
     * 服务评价
     */
    private String serviceEvaluate;

    private String remark;

    private Integer IsMany;

    private String otherStaffName;

    private HealthReportDTO healthReportDTO;

}
